import request from '@/utils/request';
import { AxiosPromise } from 'axios';

export function getDeptAll() {
	return request({
		url: `system/dept/queryDeptTree`,
		method: 'get',
	})  
}
// 新建表单文档模板
export function addSysFormDocTemp(data) {
  return request({
    url: `knowledge/api/sysFormDocTemp/add`,
    method: 'post',
    data
  })
}

// 更改表单文档模板状态
export function updateFormJsonSysFormDocTemp(data) {
  return request({
    url: `knowledge/api/sysFormDocTemp/updateFormJson`,
    method: 'post',
    data
  })
}
export function getSysFormDocTemp(params) {
  return request({
    url: `knowledge/api/sysFormDocTemp`,
    method: 'get',
    params
  })
}
export function deleteSysFormDocTemp(ids) {
  return request({
    url: 'knowledge/api/sysFormDocTemp/delete',
    method: 'DELETE',
    data: ids
  })
}
// 单文件上传
export function uploadOrdinary(data) {
  return request({
    url: '/resource/oss/file/date/upload/ordinary',
    method: 'post',
    data: data
  });
}